const {
	http
} = uni.$u
// 获取菜单

export const http_getStoreBaseinfo = (params = {}) => http.get('/addons/zzyy/api.store/baseinfo', params)
export const http_getRoomRentInfo = (params = {}) => http.get('/addons/zzyy/api.room/getRentInfo', params)
export const http_getStoreAll = (params = {}) => http.get('/addons/zzyy/api.store/all', params)


export const http_mpWeixinLogin = (params, config = {}) => http.post('/addons/zzyy/api.login/mpWeixinLogin', params,
	config)
export const http_mpWeixinRegisterByProfileAndLogin = (params, config = {}) => http.post(
	'/addons/zzyy/api.login/mpWeixinRegisterByProfileAndLogin', params, config)
export const http_logout = (params, config = {}) => http.post('/api/user/logout', params, config)
export const http_getUserInfo = (params = {}) => http.get('/addons/zzyy/api.user/getUserInfo', params)
export const http_getUserPhoneFromMP = (params, config = {}) => http.post('/addons/zzyy/api.user/mpWeixinDecodePhone',
	params, config)
export const http_setUserInfo = (params, config = {}) => http.post('/api/user/saveUserInfo', params, config)


export const get_agreement_api = (params, config = {}) => http.get(
	'/addons/zzyy/api.common/getagreement', {params},
	config) //用户注册
export const login_out_api = (params, config = {}) => http.post(
	'/api/user/logout', params,
	config) //用户注册
export const user_register_api = (params, config = {}) => http.post(
	'/addons/zzyy/api.login/mpWeixinRegisterByProfileAndLogin', params,
	config) //用户注册
export const user_login_api = (params, config = {}) => http.post('/addons/zzyy/api.login/mpWeixinLogin', params,
	config) //用户登录
export const get_user_info = (params = {}) => http.get('/addons/zzyy/api.user/getUserInfo', params) //获取用户信息
export const get_user_phone_api = (params, config = {}) => http.post('/addons/zzyy/api.user/mpWeixinDecodePhone',
	params,
	config) //获取用户手机号
export const save_user_info_api = (params, config = {}) => http.post('/addons/zzyy/api.user/saveUserInfo',
	params,
	config) //保存用户信息

export const get_all_stores_api = (params, config = {}) => http.get('/addons/zzyy/api.store/all', params,
	config) //获取全部门店
export const get_stores_detail_api = (params, config = {}) => http.get('/addons/zzyy/api.store/baseinfo', {
	params
}, config) //获取门店详情
export const get_room_detail_api = (params, config = {}) => http.get('/addons/zzyy/api.room/baseinfo', {
	params
}, config) //获取教室详情
export const get_stores_Appointment_time_api = (params, config = {}) => http.get('/addons/zzyy/api.room/getRentInfo', {
	params
}, config) //获取教室预约时间
export const post_order_info_api = (params, config = {}) => http.post('/addons/zzyy/api.reserve/order',
	params, config) //提交订单信息
export const get_all_reservation_api = (params, config = {}) => http.get('/addons/zzyy/api.user/getUserAllReservation',
	params, config) //我的全部预约
export const get_my_reservation_api = (params, config = {}) => http.get('/addons/zzyy/api.user/getMyReserveList',
	params, config) //我的预约
export const get_reservation_details_api = (params, config = {}) => http.get('/addons/zzyy/api.reserve/getFullInfo', {
	params
}, config) //某条完整预约请详情
export const cancle_reservation_api = (params, config = {}) => http.get('/addons/zzyy/api.reserve/cancelReserve', {
	params
}, config) //取消预约
export const delete_reservation_api = (params, config = {}) => http.get('/addons/zzyy/api.reserve/remove', {
	params
}, config) //删除某预约
export const get_balance_details_api = (params, config = {}) => http.get('/addons/zzyy/api.user/getBalanceInfo', {
	params
}, config) //余额明细
export const get_balance_options_api = (params, config = {}) => http.get('/addons/zzyy/api.recharge/options', {
	params
}, config) //充值选项

export const create_wechat_pay_api = (params, config = {}) => http.post('/addons/zzyy/api.payment/createTransaction',
	params, config) //创建微信支付
export const check_wechat_pay_success_api = (params, config = {}) => http.get(
	'/addons/zzyy/api.payment/checkTransaction', {
		params
	}, config) //检查微信支付是否成功
export const update_blance_api = (params, config = {}) => http.post(
	'/addons/zzyy/api.recharge/updateBalance',
	params, config) //微信支付成功更新余额
export const balance_pay_api = (params, config = {}) => http.post(
	'/addons/zzyy/api.payment/balancePay',
	params, config) //余额支付预约
export const update_reservation_pay_api = (params, config = {}) => http.post(
	'/addons/zzyy/api.reserve/updateOrderPaid',
	params, config) //支付成功后更新预约
